package com.dgut.courses_selecting_sys.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuec
 * @since 2021-01-26
 */
@Data
public class ActivitiesDto implements Serializable {

    private Long activityId;
    @Size(max = 15,min = 1)
    private String activityName;
    @Min(value = 0,message = "开课人数不能小于0")
    @Max(value = 300,message = "开课人数不能大于300")
    private Integer count;

    private String selectedTime;

    private String startTime;

    private String endTime;

    private String classroom;
    @Min(value = 0,message = "课程学分不能小于0")
    @Max(value = 10,message = "课程学分不能大于10")
    private BigDecimal credit;

    private Integer status;

    private String remarks;

    private Long createBy;

    private String createByName;


}
